package com.ugoodtech.mdcc.core.domain;

/* Copyright (C) Ugoodtech, Inc - All Rights Reserved.
 * Unauthorized copying of this file, via any medium is strictly prohibited.
 * Proprietary and confidential.
 * Written by Stone Shaw.
 */

import io.swagger.annotations.ApiModel;

import javax.persistence.*;

@ApiModel("维修站")
@Entity
@Table(name = "stations")
public class Station extends BaseEntity {
    private String name;
    private String province;
    private String address;
    private String city;
    private String category;//类型
    private String district;//大区
    private String brand;
    private String contact;//联系人
    private String stationNum;//维修站编号
    //客户类型
    private Long customerType;
    //客户状态
    private Long customerStat;
    //油漆品牌
    private String paintBrand;
    //品牌定位
    private String productPosition;
    //维修站的登陆用户
    private User user;
    @Transient
    private Long colorReportId;

    private boolean checkStation = false;
    //维修站是否填写过精益钣喷
    private int isPaint = 0;
    //是否有其他品牌
    private boolean isOtherBrand = false;
    //客户资料完成情况
    private Integer report_finished;


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public String getContact() {
        return contact;
    }

    public void setContact(String contact) {
        this.contact = contact;
    }

    public String getDistrict() {
        return district;
    }

    public void setDistrict(String district) {
        this.district = district;
    }

    public Integer getReport_finished() {
        return report_finished;
    }

    public void setReport_finished(Integer report_finished) {
        this.report_finished = report_finished;
    }

    @ManyToOne
    @JoinColumn(name = "user_id")
    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Long getColorReportId() {
        return colorReportId;
    }

    public void setColorReportId(Long colorReportId) {
        this.colorReportId = colorReportId;
    }

    @Column(name = "station_num")
    public String getStationNum() {
        return stationNum;
    }

    public void setStationNum(String stationNum) {
        this.stationNum = stationNum;
    }

    @Column(name = "check_station")
    public boolean isCheckStation() {
        return checkStation;
    }

    public void setCheckStation(boolean checkStation) {
        this.checkStation = checkStation;
    }

    @Column(name = "customer_type")
    public Long getCustomerType() {
        return customerType;
    }

    public void setCustomerType(Long customerType) {
        this.customerType = customerType;
    }

    @Column(name = "customer_stat")
    public Long getCustomerStat() {
        return customerStat;
    }

    public void setCustomerStat(Long customerStat) {
        this.customerStat = customerStat;
    }

    @Column(name = "product_position")
    public String getProductPosition() {
        return productPosition;
    }

    public void setProductPosition(String productPosition) {
        this.productPosition = productPosition;
    }

    @Column(name = "paint_brand")
    public String getPaintBrand() {
        return paintBrand;
    }

    public void setPaintBrand(String paintBrand) {
        this.paintBrand = paintBrand;
    }

    @Column(name = "is_paint")
    public int getIsPaint() {
        return isPaint;
    }

    public void setIsPaint(int isPaint) {
        this.isPaint = isPaint;
    }

    @Column(name = "is_other_brand")
    public boolean isOtherBrand() {
        return isOtherBrand;
    }

    public void setOtherBrand(boolean isOtherBrand) {
        this.isOtherBrand = isOtherBrand;
    }
}

